package com.free.normal;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>mail: ganshm@gmail.com</p>
 */


public class HelloWorldLabel {

	 public static void main(String[] args) {
		    Display display = new Display();
		    Shell shell = new Shell(display);
		    shell.setLayout(new FillLayout());
		    Label label1 = new Label(shell, SWT.WRAP);
		    label1.setText("very good!");
		    
		    new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);
		    new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);
		    
		    Label label2 = new Label(shell, SWT.NONE);
		    label2.setText("gan.shu.man");
		    
		    shell.setSize(200, 70);
		    shell.open();
		    while (!shell.isDisposed()) {
		      if (!display.readAndDispatch())
		        display.sleep();
		    }
		    display.dispose();
		  }
		} 


